package com.ruoyi.mes.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 能耗统计分析对象 tb_new_energy_analysis
 * 
 * @author ruoyi
 * @date 2025-05-14
 */
public class NewEnergyAnalysis extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long analysisId;

    /** 空值时表示全厂统计 */
    @Excel(name = "空值时表示全厂统计")
    private Long equipmentId;

    /** 统计日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "统计日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date statDate;

    /** 总能耗(KWh) */
    @Excel(name = "总能耗(KWh)")
    private BigDecimal totalEnergy;

    /** 峰值能耗 */
    @Excel(name = "峰值能耗")
    private BigDecimal peakEnergy;

    /** 单位能耗成本 */
    @Excel(name = "单位能耗成本")
    private BigDecimal unitEnergyCost;

    /** 关联生产订单 */
    @Excel(name = "关联生产订单")
    private Long productionOrderId;

    public void setAnalysisId(Long analysisId) 
    {
        this.analysisId = analysisId;
    }

    public Long getAnalysisId() 
    {
        return analysisId;
    }
    public void setEquipmentId(Long equipmentId) 
    {
        this.equipmentId = equipmentId;
    }

    public Long getEquipmentId() 
    {
        return equipmentId;
    }
    public void setStatDate(Date statDate) 
    {
        this.statDate = statDate;
    }

    public Date getStatDate() 
    {
        return statDate;
    }
    public void setTotalEnergy(BigDecimal totalEnergy) 
    {
        this.totalEnergy = totalEnergy;
    }

    public BigDecimal getTotalEnergy() 
    {
        return totalEnergy;
    }
    public void setPeakEnergy(BigDecimal peakEnergy) 
    {
        this.peakEnergy = peakEnergy;
    }

    public BigDecimal getPeakEnergy() 
    {
        return peakEnergy;
    }
    public void setUnitEnergyCost(BigDecimal unitEnergyCost) 
    {
        this.unitEnergyCost = unitEnergyCost;
    }

    public BigDecimal getUnitEnergyCost() 
    {
        return unitEnergyCost;
    }
    public void setProductionOrderId(Long productionOrderId) 
    {
        this.productionOrderId = productionOrderId;
    }

    public Long getProductionOrderId() 
    {
        return productionOrderId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("analysisId", getAnalysisId())
            .append("equipmentId", getEquipmentId())
            .append("statDate", getStatDate())
            .append("totalEnergy", getTotalEnergy())
            .append("peakEnergy", getPeakEnergy())
            .append("unitEnergyCost", getUnitEnergyCost())
            .append("productionOrderId", getProductionOrderId())
            .toString();
    }
}
